package entity;

/**
 * 顾客类
 */

public class Customer {
	private int id;
	private String password;
	private String telNumber;
	private String address;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTelNumber() {
		return telNumber;
	}

	public void setTelNumber(String telNumber) {
		this.telNumber = telNumber;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	//

//	public boolean checkClogin(int id, String pwd) {
//
//	}
	
//
//	//密码验证
//	public boolean checkCLogi2n(int id, String pwd) {
//		this.Rnumber = number;
//		this.Rpassword = password;
//		boolean b = false;
//		try {
//			stmt = conn.createStatement();
//			rs = stmt.executeQuery("select * from customer");
//			while (rs.next() && b == false) {
//				if (number==rs.getInt(2)
//						&& password.equals(rs.getString(7))) {
//					b = true;
//				}
//			}
//		} catch (SQLException e) {
//			e.printStackTrace();
//		}
//		this.close();
//		return b;
//	}
}
